<table id="user-table" class="table table-striped table-hover" data-search-form="#user-search-form">
  <thead>
    <tr>
      <th>{{setting('course.task_name')|default('admin.setting_course.task'|trans)}}</th>
      <th>{{'admin.operation_analysis.task.type'|trans({'%taskName%':setting('course.task_name')|default('admin.setting_course.task'|trans)})}}</th>
      <th>{{'site.default.student'|trans}}</th>
    </tr>
  </thead>
  <tbody>
    {% if completedTaskDetail %}
    {% for data in completedTaskDetail %}
      <tr>
        <td> <strong>{{tasks[data.courseTaskId].title|default("")}}</strong><br><span class="text-muted text-sm">{{ 'admin.operation_analysis.task.belong_to_course'|trans({'%courseTitle%': courseSets[courses[data.courseId].courseSetId].title}) }} &raquo; {{courses[data.courseId].title}}</span></td>
        <td>{% if tasks[data.courseTaskId].type=="text" %}{{'admin.operation_analysis.task.text'|trans}}
        {% elseif tasks[data.courseTaskId].type=="video" %}{{'admin.operation_analysis.task.video'|trans}}
        {% elseif tasks[data.courseTaskId].type=="audio" %}{{'admin.operation_analysis.task.audio'|trans}}
        {% elseif tasks[data.courseTaskId].type=="ppt" %}{{'admin.operation_analysis.task.ppt'|trans}}
        {% elseif tasks[data.courseTaskId].type=="testpaper" %}{{'admin.operation_analysis.task.testpaper'|trans}}
        {% endif %}</td>
         <td>{{ admin_macro.user_link(users[data.userId]) }}<br>{{data.finishedTime|date("Y-m-d H:i:s")}}</td>
      </tr>
    {% endfor %}
    {% endif %}
  </tbody>
</table>
{{ admin_macro.paginator(paginator) }}
